home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 19 / Amiga Plus Leser CD 19.iso / Tools / Freeware / Swf_Player / Lib / movie.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-11-17  |  1.9 KB  |  71 lines

  1. /////////////////////////////////////////////////////////////
  2. // Flash Plugin and Player
  3. // Copyright (C) 1998 Olivier Debon
  4. // 
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9. // 
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14. // 
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18. // 
  19. ///////////////////////////////////////////////////////////////
  20. #ifndef _MOVIE_H_
  21. #define _MOVIE_H_
  22.  
  23. #include "swf.h"
  24.  
  25. #include "amiga_specific.h"
  26.  
  27. struct FlashMovie {
  28.     /* true if a button has been moved */
  29.     int buttons_updated;
  30.  
  31.     /* current keyboard focus */
  32.     DisplayListEntry     *cur_focus;
  33.  
  34.     /* mouse state */
  35.     long mouse_active;
  36.     long mouse_x;
  37.     long mouse_y;
  38.     int button_pressed;
  39.  
  40.     Button *lost_over;
  41.  
  42.     /* a button can return to a given state after some time */
  43.     FlashEvent           scheduledEvent;
  44.     struct myTimeval     scheduledTime;
  45.  
  46.     int         refresh;
  47.  
  48.     CInputScript     *main;
  49.     long         msPerFrame;
  50.     GraphicDevice    *gd;
  51.     SoundMixer       *sm;
  52.  
  53.     void        (*getUrl)(char *,char *, void *);
  54.     void        *getUrlClientData;
  55.  
  56.     void        (*getSwf)(char *url, int level, void *clientData);
  57.     void        *getSwfClientData;
  58.  
  59.     void        (*cursorOnOff)(int , void *);
  60.     void        *cursorOnOffClientData;
  61.  
  62.     FlashMovie();
  63.     ~FlashMovie();
  64.     int         processMovie(GraphicDevice *gd, SoundMixer *sm);
  65.     int         handleEvent(GraphicDevice *gd, SoundMixer *sm, FlashEvent *event);
  66.     void          renderMovie();
  67.     void          renderFocus();
  68. };
  69.  
  70. #endif /* _MOVIE_H_ */
  71.